package com.car.dal.dao.method;

import java.util.List;

import com.car.bean.GridObj;
import com.car.bean.OrderObj;
import com.car.bean.PageObj;
import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.TgMethod;
import com.car.dal.object.TgReception;

public class TgMethodDaoImpl extends IbatisCommonDao<TgMethod, Long> implements TgMethodDao {

	public GridObj GetList(TgMethod method, PageObj pageObj) {
		OrderObj order = new OrderObj();
		order.setDir("desc");
		order.setSort("id");
		// TODO Auto-generated method stub
		return super.findByPage(method, pageObj, order);
	}
	
	public List<TgMethod> getBankIdBydis(TgMethod method) {
		List<TgMethod> list=this.queryForEntityList(TgMethod.class,"getBankIdBydis", method);
		return list;
	}
}
